﻿using GalaSoft.MvvmLight;
using System.Collections.ObjectModel;
using TestSendTool.Models.EntityModels;

namespace TestSendTool.Models.BindingModels
{
    public class MainModel : ObservableObject
    {
        private ObservableCollection<SubItem> subItemColl;

        public ObservableCollection<SubItem> SubItemColl
        {
            get => subItemColl;
            set => Set(ref subItemColl, value);
        }


        public MainModel()
        {
            SubItemColl = new ObservableCollection<SubItem>()
            {
                new SubItem(){ IpAdress = "192.168.2.20",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.21",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.22",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.23",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.24",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.25",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.26",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.27",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.28",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.29",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.40",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.41",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.42",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.50",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.51",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.52",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.53",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.54",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.60",Time =30590},
                new SubItem(){ IpAdress = "192.168.2.61",Time =30590},
            };
        }

    }
}
